/**
 * Project: topdt-jbpm
 * Copyright 2013  Top Digital Technology  Co. Ltd.
 * All right reserved.
 */
package com.topdt.jbpm.service;

import java.util.ArrayList;
import java.util.List;

import com.topdt.jbpm.identity.User;

/**
 * 建立日期 : 2013-6-8 上午10:15:21<br>
 * 作者 : balance<br>
 * 模块 : <br>
 * 描述 : <br>
 * 修改历史: 序号 日期 修改人 修改原因 <br>
 * 1 <br>
 * 2 <br>
 */
public class ActorResp extends SubmitResp {

	List<ActorSetting> settings;

	public ActorResp() {
		this.type = TYPE_ACTOR;
	}

	public void addSetting(String activityName, int actorNUM, List<User> users) {

		if (this.settings == null)
			settings = new ArrayList<ActorSetting>();

		ActorSetting setting = new ActorSetting();
		setting.setActivityName(activityName);
		setting.setActorNUM(actorNUM);
		setting.setActors(users);

		settings.add(setting);

	}

	public List<ActorSetting> getSettings() {
		return settings;
	}

	public void setSettings(List<ActorSetting> settings) {
		this.settings = settings;
	}

	class ActorSetting {
		private String activityName = "";

		private int actorNUM;

		private List<User> actors;

		public String getActivityName() {
			return activityName;
		}

		public void setActivityName(String activityName) {
			this.activityName = activityName;
		}

		public int getActorNUM() {
			return actorNUM;
		}

		public void setActorNUM(int actorNUM) {
			this.actorNUM = actorNUM;
		}

		public List<User> getActors() {
			return actors;
		}

		public void setActors(List<User> actors) {
			this.actors = actors;
		}
	}

}
